/*
 * @Descripttion: 
 * @version: 版本
 * @Author: Simon
 * @Date: 2021-04-16 09:58:54
 * @LastEditors: Simon
 * @LastEditTime: 2021-04-16 10:04:41
 */
import { apiPrefix } from '@/consts/consts'

export default ({ $service:request }) => ({

  tagList(params) {
    return request({
      url: `${apiPrefix}/api/v1/tag/list`,
      method: 'get',
      params
    })
  },


  tagAdd(data) {
    return request({
      url: `${apiPrefix}/api/v1/tag/add`,
      method: 'post',
      data
    })
  },
  

  tagUpdate(data, id) {
    return request({
      url: `${apiPrefix}/api/v1/tag/update/${id}`,
      method: 'put',
      data
    })
  },
    

  tagDelete(id) {
    return request({
      url: `${apiPrefix}/api/v1/tag/delete/${id}`,
      method: 'delete',
    })
  }

})
